//
//  NHT_Encryptor.h
//  NHTEncryptor
//
//  Created by NHT on 2024/4/7.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NHT_Encryptor : NSObject

/// sha1加密
/// - Parameter oldString: 待加密字符串
+(NSString *)encryptSHA1:(NSString *)oldString;


/// 返回加密或者解密后字符串
/// - Parameters:
///   - oldStr: 待处理字符串
///   - key: key
///   - iv: iv
///   - isDecrypt: 是否是解密
+(NSString *)encryptOrDecryptAES2:(NSString *)oldStr key:(NSString *)key iv:(NSString *)iv isDecrypt:(Boolean)isDecrypt;
@end

NS_ASSUME_NONNULL_END
